﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Himp.Platform.Migrations
{
    /// <inheritdoc />
    public partial class modify_table_bizseq : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.RenameColumn(
                name: "FORMAT",
                table: "MainBizSeq",
                newName: "Format");

            migrationBuilder.RenameColumn(
                name: "CURR_SEQ",
                table: "MainBizSeq",
                newName: "CurrSeq");

            migrationBuilder.RenameColumn(
                name: "BIZ_SEQ_TYPE",
                table: "MainBizSeq",
                newName: "BizSeqType");

            migrationBuilder.AlterColumn<string>(
                name: "Format",
                table: "MainBizSeq",
                type: "text",
                nullable: true,
                oldClrType: typeof(string),
                oldType: "text");

            migrationBuilder.AlterColumn<string>(
                name: "BizSeqType",
                table: "MainBizSeq",
                type: "text",
                nullable: true,
                oldClrType: typeof(string),
                oldType: "text");
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.RenameColumn(
                name: "Format",
                table: "MainBizSeq",
                newName: "FORMAT");

            migrationBuilder.RenameColumn(
                name: "CurrSeq",
                table: "MainBizSeq",
                newName: "CURR_SEQ");

            migrationBuilder.RenameColumn(
                name: "BizSeqType",
                table: "MainBizSeq",
                newName: "BIZ_SEQ_TYPE");

            migrationBuilder.AlterColumn<string>(
                name: "FORMAT",
                table: "MainBizSeq",
                type: "text",
                nullable: false,
                defaultValue: "",
                oldClrType: typeof(string),
                oldType: "text",
                oldNullable: true);

            migrationBuilder.AlterColumn<string>(
                name: "BIZ_SEQ_TYPE",
                table: "MainBizSeq",
                type: "text",
                nullable: false,
                defaultValue: "",
                oldClrType: typeof(string),
                oldType: "text",
                oldNullable: true);
        }
    }
}
